home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
rquest01.zip
/
REQUEST.DOC
< prev
next >
Wrap
Text File
|
1992-03-16
|
5KB
|
106 lines
'+--------------------------[ Request Ver 0.10 ]----------------------------+
'| Written By Gary Meeker 03/16/92 Updated / / |
'| SYSOP: SHARP Technical Support Line BBS Lawrenceville, GA |
'| (404) 962-1788 300/1200/2400/9600 Baud. 24 Hours |
'+---------------------------------------------------------------------------+
'V0.10 03/16/92 - Initial release (Beta)
'-----------------------------------------------------------------------------
Syntax:
REQUEST PCBDir ConfigFile
Where: PCBDir = Drive:Path to the PCBoard Directory (for PCBOARD.SYS)
ConfigFile = Drive:Path to our configuration file.
The Configuration file contains the following information:
Line 1: Drive:Path\Filename of USERS File.
Line 2: Drive:Path\Filename of the DataBase INDEX file to be read
Line 3: Drive:Path\Filename of the DataBase INDEX file to be created
Line 4: Starting position of value in Sysop Comment Field.
Line 5: Text to send when no files are available.
Line 6: Text to send when limit reached.
Line 7: Maximum number of files that will be Requested
The file is not case sensitive so any mix of upper and lower case is acceptable.
Request is desined to be run as a simple Door. It will check to see if the
User is allowed to download any files (as determined by the 3 characters
of the Sysop Comment string starting from specified offset). If the value
here is greater than 0 then the files specified on the command line by the
User will be scanned for in the DataBase INDEX file. Each file found matching
the filespec(s) given by the User will be copied into a NEW INDEX file which
MUST be included in you DLPATH.LST file. For each file copied, the number of
files allowed will be decremented. This continues until the limit of files is
reached or the filespecs run out. Wildcards are allowed in the filespec given
by the User. The value will be updated in the Sysop Comment field of the Users
record. The files will be flagged for download upon return to PCBoard.
The INDEX file should be overwritten in your $$LOGOFF.BAT by a dummy INDEX
file to prevent another caller from downloading these same files.
To make the DataBase INDEX file, Type 'MAKEIDX pathlist[.PTH] indexname[.IDX]'
Where pathlist is an ASCII file (CR/LF delimited) listing paths that
are to be scanned for files (including any subdirectories of the paths
that are specified.
And the indexname is the name of the INDEX file to be created based
on the files found in the paths specified by the pathlist file.
To make the Dummy INDEX file, create a pathlist file with an empty directory
in it. This will create an INDEX file with no files in it. If this causes a
problem for PCBOARD, create a directory and place a dummy file there so the
INDEX will contain 1 file. You can then delete the file and directory. The
filename should be some really odd filename so it doesn't get found in a file
search normally.
You will need to regenerate then DataBase INDEX file anytime files are added
or deleted to/from the directories. A simple batch file makes this easy though.
The Door should be set up as SHELL (but not SWAP!) but can be set up as Non-
Shell. SWAP does not work as we need the PCBDOOR enviroment. A sample Door
batch file would be:
REQUEST %PCBDRIVE%%PCBDIR% C:\PCB\REQUEST.CNF
'-----------------------------------------------------------------------------
This is just a Beta release of an idea to meet the need of a specific BBS.
It does not offer the full features of a Door to fit many needs until I know
just what the needs are.
Future developments could include a User database to eliminate the use of
the Sysop comment field or maybe a TPA and use of the USERS.SYS file. This
could allow setting limits for EACH download directory instead of a total
file limit. Also a utility to set the limits into the DataBase or TPA based
on Security Level or manual adjustment.
Please direct any questions or suggestions for enhancements to my BBS.
=========================================================================
CONTACTING THE AUTHOR
There are a number of ways to contact the author:
1. Call the support BBS,
SHARP Technical Support Line BBS
(404) 962-1788
9600/2400/1200/300 24 Hours.
2. Send net mail message through one of the mail networks in a CD-Rom
Sysops, PCBoard, QuickBasic or TeleMate Conference addressed to 'Gary Meeker'.
Available networks are Intelec, Rime, ILink and P/Net.
3. Send letter through regular post to the following address:
ATTN: Gary Meeker
SHARP Technical Support Line BBS
725-C Old Norcross Road
Lawrenceville, GA 30245
4. Via Fax: (404) 995-0613
=========================================================================